package org.apache.sad.core.framework.jaxrpc;

import java.rmi.RemoteException;

import javax.xml.rpc.Service;
import javax.xml.rpc.Stub;

import org.apache.sad.core.framework.exception.SystemException;

public interface JaxRpcRuntime {

	public Service createJaxRpcService() throws SystemException;
	
	public Stub getPort(Service jaxRpcService, String portName) throws SystemException;

    public Throwable handleRemoteException(RemoteException e); 
    
    public void setConnectionTimeout(Stub stub, Integer timeoutInMilliSeconds);
    
    public void setReadTimeout(Stub stub, Integer timeoutInMilliSeconds);
}
